(function(d) {
  function m(a) {
    d.fn.cycle.debug && n(a);
  }
  function n() {
    window.console && window.console.log && window.console.log("[cycle] " + Array.prototype.join.call(arguments, " "));
  }
  function h(a, b, e) {
    function g(a, b, e) {
      if (!a && !0 === b) {
        a = d(e).data("cycle.opts");
        if (!a) {
          return n("options not found, can not resume"), !1;
        }
        e.cycleTimeout && (clearTimeout(e.cycleTimeout), e.cycleTimeout = 0);
        u(a.elements, a, 1, !a.backwards);
      }
    }
    void 0 == a.cycleStop && (a.cycleStop = 0);
    if (void 0 === b || null === b) {
      b = {};
    }
    if (b.constructor == String) {
      switch(b) {
        case "destroy":
        ;
        case "stop":
          e = d(a).data("cycle.opts");
          if (!e) {
            return!1;
          }
          a.cycleStop++;
          a.cycleTimeout && clearTimeout(a.cycleTimeout);
          a.cycleTimeout = 0;
          d(a).removeData("cycle.opts");
          "destroy" == b && r(e);
          return!1;
        case "toggle":
          return a.cyclePause = 1 === a.cyclePause ? 0 : 1, g(a.cyclePause, e, a), !1;
        case "pause":
          return a.cyclePause = 1, !1;
        case "resume":
          return a.cyclePause = 0, g(!1, e, a), !1;
        case "prev":
        ;
        case "next":
          e = d(a).data("cycle.opts");
          if (!e) {
            return n('options not found, "prev/next" ignored'), !1;
          }
          d.fn.cycle[b](e);
          return!1;
        default:
          b = {fx:b};
      }
    } else {
      if (b.constructor == Number) {
        var f = b;
        b = d(a).data("cycle.opts");
        if (!b) {
          return n("options not found, can not advance slide"), !1;
        }
        if (0 > f || f >= b.elements.length) {
          return n("invalid slide index: " + f), !1;
        }
        b.nextSlide = f;
        a.cycleTimeout && (clearTimeout(a.cycleTimeout), a.cycleTimeout = 0);
        "string" == typeof e && (b.oneTimeFx = e);
        u(b.elements, b, 1, f >= b.currSlide);
        return!1;
      }
    }
    return b;
  }
  function q(a, b) {
    if (!d.support.opacity && b.cleartype && a.style.filter) {
      try {
        a.style.removeAttribute("filter");
      } catch (e) {
      }
    }
  }
  function r(a) {
    a.next && d(a.next).unbind(a.prevNextEvent);
    a.prev && d(a.prev).unbind(a.prevNextEvent);
    (a.pager || a.pagerAnchorBuilder) && d.each(a.pagerAnchors || [], function() {
      this.unbind().remove();
    });
    a.pagerAnchors = null;
    a.destroy && a.destroy(a);
  }
  function s(a, b, e, g, f) {
    var c = d.extend({}, d.fn.cycle.defaults, g || {}, d.metadata ? a.metadata() : d.meta ? a.data() : {});
    c.autostop && (c.countdown = c.autostopCount || e.length);
    var k = a[0];
    a.data("cycle.opts", c);
    c.$cont = a;
    c.stopCount = k.cycleStop;
    c.elements = e;
    c.before = c.before ? [c.before] : [];
    c.after = c.after ? [c.after] : [];
    c.after.unshift(function() {
      c.busy = 0;
    });
    !d.support.opacity && c.cleartype && c.after.push(function() {
      q(this, c);
    });
    c.continuous && c.after.push(function() {
      u(e, c, 0, !c.backwards);
    });
    t(c);
    d.support.opacity || !c.cleartype || c.cleartypeNoBg || z(b);
    "static" == a.css("position") && a.css("position", "relative");
    c.width && a.width(c.width);
    c.height && "auto" != c.height && a.height(c.height);
    c.startingSlide ? c.startingSlide = parseInt(c.startingSlide) : c.backwards && (c.startingSlide = e.length - 1);
    if (c.random) {
      c.randomMap = [];
      for (k = 0;k < e.length;k++) {
        c.randomMap.push(k);
      }
      c.randomMap.sort(function(a, b) {
        return Math.random() - .5;
      });
      c.randomIndex = 1;
      c.startingSlide = c.randomMap[1];
    } else {
      c.startingSlide >= e.length && (c.startingSlide = 0);
    }
    c.currSlide = c.startingSlide || 0;
    var l = c.startingSlide;
    b.css({position:"absolute", top:0, left:0}).hide().each(function(a) {
      a = c.backwards ? l ? a <= l ? e.length + (a - l) : l - a : e.length - a : l ? a >= l ? e.length - (a - l) : l - a : e.length - a;
      d(this).css("z-index", a);
    });
    d(e[l]).css("opacity", 1).show();
    q(e[l], c);
    c.fit && c.width && b.width(c.width);
    c.fit && c.height && "auto" != c.height && b.height(c.height);
    if (c.containerResize && !a.innerHeight()) {
      for (var h = k = 0, m = 0;m < e.length;m++) {
        var v = d(e[m]), r = v[0], s = v.outerWidth(), x = v.outerHeight();
        s || (s = r.offsetWidth || r.width || v.attr("width"));
        x || (x = r.offsetHeight || r.height || v.attr("height"));
        k = s > k ? s : k;
        h = x > h ? x : h;
      }
      0 < k && 0 < h && a.css({width:k + "px", height:h + "px"});
    }
    c.pause && a.hover(function() {
      this.cyclePause++;
    }, function() {
      this.cyclePause--;
    });
    if (!1 === A(c)) {
      return!1;
    }
    var w = !1;
    g.requeueAttempts = g.requeueAttempts || 0;
    b.each(function() {
      var a = d(this);
      this.cycleH = c.fit && c.height ? c.height : a.height() || this.offsetHeight || this.height || a.attr("height") || 0;
      this.cycleW = c.fit && c.width ? c.width : a.width() || this.offsetWidth || this.width || a.attr("width") || 0;
      if (a.is("img")) {
        var a = d.browser.mozilla && 34 == this.cycleW && 19 == this.cycleH && !this.complete, b = d.browser.opera && (42 == this.cycleW && 19 == this.cycleH || 37 == this.cycleW && 17 == this.cycleH) && !this.complete, e = 0 == this.cycleH && 0 == this.cycleW && !this.complete;
        if (d.browser.msie && 28 == this.cycleW && 30 == this.cycleH && !this.complete || a || b || e) {
          if (f.s && c.requeueOnImageNotLoaded && 100 > ++g.requeueAttempts) {
            return n(g.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH), setTimeout(function() {
              d(f.s, f.c).cycle(g);
            }, c.requeueTimeout), w = !0, !1;
          }
          n("could not determine size of image: " + this.src, this.cycleW, this.cycleH);
        }
      }
      return!0;
    });
    if (w) {
      return!1;
    }
    c.cssBefore = c.cssBefore || {};
    c.animIn = c.animIn || {};
    c.animOut = c.animOut || {};
    b.not(":eq(" + l + ")").css(c.cssBefore);
    c.cssFirst && d(b[l]).css(c.cssFirst);
    if (c.timeout) {
      for (c.timeout = parseInt(c.timeout), c.speed.constructor == String && (c.speed = d.fx.speeds[c.speed] || parseInt(c.speed)), c.sync || (c.speed /= 2), k = "shuffle" == c.fx ? 500 : 250;c.timeout - c.speed < k;) {
        c.timeout += c.speed;
      }
    }
    c.easing && (c.easeIn = c.easeOut = c.easing);
    c.speedIn || (c.speedIn = c.speed);
    c.speedOut || (c.speedOut = c.speed);
    c.slideCount = e.length;
    c.currSlide = c.lastSlide = l;
    c.random ? (++c.randomIndex == e.length && (c.randomIndex = 0), c.nextSlide = c.randomMap[c.randomIndex]) : c.nextSlide = c.backwards ? 0 == c.startingSlide ? e.length - 1 : c.startingSlide - 1 : c.startingSlide >= e.length - 1 ? 0 : c.startingSlide + 1;
    if (!c.multiFx) {
      if (k = d.fn.cycle.transitions[c.fx], d.isFunction(k)) {
        k(a, b, c);
      } else {
        if ("custom" != c.fx && !c.multiFx) {
          return n("unknown transition: " + c.fx, "; slideshow terminating"), !1;
        }
      }
    }
    a = b[l];
    c.before.length && c.before[0].apply(a, [a, a, c, !0]);
    1 < c.after.length && c.after[1].apply(a, [a, a, c, !0]);
    c.next && d(c.next).bind(c.prevNextEvent, function() {
      return y(c, 1);
    });
    c.prev && d(c.prev).bind(c.prevNextEvent, function() {
      return y(c, 0);
    });
    (c.pager || c.pagerAnchorBuilder) && B(e, c);
    C(c, e);
    return c;
  }
  function t(a) {
    a.original = {before:[], after:[]};
    a.original.cssBefore = d.extend({}, a.cssBefore);
    a.original.cssAfter = d.extend({}, a.cssAfter);
    a.original.animIn = d.extend({}, a.animIn);
    a.original.animOut = d.extend({}, a.animOut);
    d.each(a.before, function() {
      a.original.before.push(this);
    });
    d.each(a.after, function() {
      a.original.after.push(this);
    });
  }
  function A(a) {
    var b, e, g = d.fn.cycle.transitions;
    if (0 < a.fx.indexOf(",")) {
      a.multiFx = !0;
      a.fxs = a.fx.replace(/\s*/g, "").split(",");
      for (b = 0;b < a.fxs.length;b++) {
        var f = a.fxs[b];
        e = g[f];
        e && g.hasOwnProperty(f) && d.isFunction(e) || (n("discarding unknown transition: ", f), a.fxs.splice(b, 1), b--);
      }
      if (!a.fxs.length) {
        return n("No valid transitions named; slideshow terminating."), !1;
      }
    } else {
      if ("all" == a.fx) {
        for (p in a.multiFx = !0, a.fxs = [], g) {
          e = g[p], g.hasOwnProperty(p) && d.isFunction(e) && a.fxs.push(p);
        }
      }
    }
    if (a.multiFx && a.randomizeEffects) {
      e = Math.floor(20 * Math.random()) + 30;
      for (b = 0;b < e;b++) {
        g = Math.floor(Math.random() * a.fxs.length), a.fxs.push(a.fxs.splice(g, 1)[0]);
      }
      m("randomized fx sequence: ", a.fxs);
    }
    return!0;
  }
  function C(a, b) {
    a.addSlide = function(e, g) {
      var f = d(e), c = f[0];
      a.autostopCount || a.countdown++;
      b[g ? "unshift" : "push"](c);
      if (a.els) {
        a.els[g ? "unshift" : "push"](c);
      }
      a.slideCount = b.length;
      f.css("position", "absolute");
      f[g ? "prependTo" : "appendTo"](a.$cont);
      g && (a.currSlide++, a.nextSlide++);
      d.support.opacity || !a.cleartype || a.cleartypeNoBg || z(f);
      a.fit && a.width && f.width(a.width);
      a.fit && a.height && "auto" != a.height && f.height(a.height);
      c.cycleH = a.fit && a.height ? a.height : f.height();
      c.cycleW = a.fit && a.width ? a.width : f.width();
      f.css(a.cssBefore);
      (a.pager || a.pagerAnchorBuilder) && d.fn.cycle.createPagerAnchor(b.length - 1, c, d(a.pager), b, a);
      if (d.isFunction(a.onAddSlide)) {
        a.onAddSlide(f);
      } else {
        f.hide();
      }
    };
  }
  function u(a, b, e, g) {
    e && b.busy && b.manualTrump && (m("manualTrump in go(), stopping active transition"), d(a).stop(!0, !0), b.busy = !1);
    if (b.busy) {
      m("transition active, ignoring new tx request");
    } else {
      var f = b.$cont[0], c = a[b.currSlide], k = a[b.nextSlide];
      if (f.cycleStop == b.stopCount && (0 !== f.cycleTimeout || e)) {
        if (e || f.cyclePause || b.bounce || !(b.autostop && 0 >= --b.countdown || b.nowrap && !b.random && b.nextSlide < b.currSlide)) {
          var l = !1;
          if ((e || !f.cyclePause) && b.nextSlide != b.currSlide) {
            var l = !0, h = b.fx;
            c.cycleH = c.cycleH || d(c).height();
            c.cycleW = c.cycleW || d(c).width();
            k.cycleH = k.cycleH || d(k).height();
            k.cycleW = k.cycleW || d(k).width();
            if (b.multiFx) {
              if (void 0 == b.lastFx || ++b.lastFx >= b.fxs.length) {
                b.lastFx = 0;
              }
              h = b.fxs[b.lastFx];
              b.currFx = h;
            }
            b.oneTimeFx && (h = b.oneTimeFx, b.oneTimeFx = null);
            d.fn.cycle.resetState(b, h);
            b.before.length && d.each(b.before, function(a, d) {
              f.cycleStop == b.stopCount && d.apply(k, [c, k, b, g]);
            });
            h = function() {
              d.each(b.after, function(a, d) {
                f.cycleStop == b.stopCount && d.apply(k, [c, k, b, g]);
              });
            };
            m("tx firing; currSlide: " + b.currSlide + "; nextSlide: " + b.nextSlide);
            b.busy = 1;
            if (b.fxFn) {
              b.fxFn(c, k, b, h, g, e && b.fastOnEvent);
            } else {
              if (d.isFunction(d.fn.cycle[b.fx])) {
                d.fn.cycle[b.fx](c, k, b, h, g, e && b.fastOnEvent);
              } else {
                d.fn.cycle.custom(c, k, b, h, g, e && b.fastOnEvent);
              }
            }
          }
          if (l || b.nextSlide == b.currSlide) {
            b.lastSlide = b.currSlide, b.random ? (b.currSlide = b.nextSlide, ++b.randomIndex == a.length && (b.randomIndex = 0), b.nextSlide = b.randomMap[b.randomIndex], b.nextSlide == b.currSlide && (b.nextSlide = b.currSlide == b.slideCount - 1 ? 0 : b.currSlide + 1)) : b.backwards ? (e = 0 > b.nextSlide - 1) && b.bounce ? (b.backwards = !b.backwards, b.nextSlide = 1, b.currSlide = 0) : (b.nextSlide = e ? a.length - 1 : b.nextSlide - 1, b.currSlide = e ? 0 : b.nextSlide + 1) : (e = b.nextSlide + 
            1 == a.length) && b.bounce ? (b.backwards = !b.backwards, b.nextSlide = a.length - 2, b.currSlide = a.length - 1) : (b.nextSlide = e ? 0 : b.nextSlide + 1, b.currSlide = e ? a.length - 1 : b.nextSlide - 1);
          }
          l && b.pager && b.updateActivePagerLink(b.pager, b.currSlide, b.activePagerClass);
          l = 0;
          b.timeout && !b.continuous ? l = w(a[b.currSlide], a[b.nextSlide], b, g) : b.continuous && f.cyclePause && (l = 10);
          0 < l && (f.cycleTimeout = setTimeout(function() {
            u(a, b, 0, !b.backwards);
          }, l));
        } else {
          b.end && b.end(b);
        }
      }
    }
  }
  function w(a, b, d, g) {
    if (d.timeoutFn) {
      for (a = d.timeoutFn.call(a, a, b, d, g);250 > a - d.speed;) {
        a += d.speed;
      }
      m("calculated timeout: " + a + "; speed: " + d.speed);
      if (!1 !== a) {
        return a;
      }
    }
    return d.timeout;
  }
  function y(a, b) {
    var e = b ? 1 : -1, g = a.elements, f = a.$cont[0], c = f.cycleTimeout;
    c && (clearTimeout(c), f.cycleTimeout = 0);
    if (a.random && 0 > e) {
      a.randomIndex--, -2 == --a.randomIndex ? a.randomIndex = g.length - 2 : -1 == a.randomIndex && (a.randomIndex = g.length - 1), a.nextSlide = a.randomMap[a.randomIndex];
    } else {
      if (a.random) {
        a.nextSlide = a.randomMap[a.randomIndex];
      } else {
        if (a.nextSlide = a.currSlide + e, 0 > a.nextSlide) {
          if (a.nowrap) {
            return!1;
          }
          a.nextSlide = g.length - 1;
        } else {
          if (a.nextSlide >= g.length) {
            if (a.nowrap) {
              return!1;
            }
            a.nextSlide = 0;
          }
        }
      }
    }
    f = a.onPrevNextEvent || a.prevNextClick;
    d.isFunction(f) && f(0 < e, a.nextSlide, g[a.nextSlide]);
    u(g, a, 1, b);
    return!1;
  }
  function B(a, b) {
    var e = d(b.pager);
    d.each(a, function(g, f) {
      d.fn.cycle.createPagerAnchor(g, f, e, a, b);
    });
    b.updateActivePagerLink(b.pager, b.startingSlide, b.activePagerClass);
  }
  function z(a) {
    function b(a) {
      a = parseInt(a).toString(16);
      return 2 > a.length ? "0" + a : a;
    }
    function e(a) {
      for (;a && "html" != a.nodeName.toLowerCase();a = a.parentNode) {
        var e = d.css(a, "background-color");
        if (0 <= e.indexOf("rgb")) {
          return a = e.match(/\d+/g), "#" + b(a[0]) + b(a[1]) + b(a[2]);
        }
        if (e && "transparent" != e) {
          return e;
        }
      }
      return "#ffffff";
    }
    m("applying clearType background-color hack");
    a.each(function() {
      d(this).css("background-color", e(this));
    });
  }
  void 0 == d.support && (d.support = {opacity:!d.browser.msie});
  d.fn.cycle = function(a, b) {
    var e = {s:this.selector, c:this.context};
    if (0 === this.length && "stop" != a) {
      if (!d.isReady && e.s) {
        return n("DOM not ready, queuing slideshow"), d(function() {
          d(e.s, e.c).cycle(a, b);
        }), this;
      }
      n("terminating; zero elements found by selector" + (d.isReady ? "" : " (DOM not ready)"));
      return this;
    }
    return this.each(function() {
      var g = h(this, a, b);
      if (!1 !== g) {
        g.updateActivePagerLink = g.updateActivePagerLink || d.fn.cycle.updateActivePagerLink;
        this.cycleTimeout && clearTimeout(this.cycleTimeout);
        this.cycleTimeout = this.cyclePause = 0;
        var f = d(this), c = g.slideExpr ? d(g.slideExpr, this) : f.children(), k = c.get();
        if (2 > k.length) {
          n("terminating; too few slides: " + k.length);
        } else {
          var l = s(f, c, k, g, e);
          !1 !== l && (f = l.continuous ? 10 : w(k[l.currSlide], k[l.nextSlide], l, !l.backwards)) && (f += l.delay || 0, 10 > f && (f = 10), m("first timeout: " + f), this.cycleTimeout = setTimeout(function() {
            u(k, l, 0, !g.backwards);
          }, f));
        }
      }
    });
  };
  d.fn.cycle.resetState = function(a, b) {
    b = b || a.fx;
    a.before = [];
    a.after = [];
    a.cssBefore = d.extend({}, a.original.cssBefore);
    a.cssAfter = d.extend({}, a.original.cssAfter);
    a.animIn = d.extend({}, a.original.animIn);
    a.animOut = d.extend({}, a.original.animOut);
    a.fxFn = null;
    d.each(a.original.before, function() {
      a.before.push(this);
    });
    d.each(a.original.after, function() {
      a.after.push(this);
    });
    var e = d.fn.cycle.transitions[b];
    d.isFunction(e) && e(a.$cont, d(a.elements), a);
  };
  d.fn.cycle.updateActivePagerLink = function(a, b, e) {
    d(a).each(function() {
      d(this).children().removeClass(e).eq(b).addClass(e);
    });
  };
  d.fn.cycle.next = function(a) {
    y(a, 1);
  };
  d.fn.cycle.prev = function(a) {
    y(a, 0);
  };
  d.fn.cycle.createPagerAnchor = function(a, b, e, g, f) {
    d.isFunction(f.pagerAnchorBuilder) ? (b = f.pagerAnchorBuilder(a, b), m("pagerAnchorBuilder(" + a + ", el) returned: " + b)) : b = '<a href="#">' + (a + 1) + "</a>";
    if (b) {
      var c = d(b);
      if (0 === c.parents("body").length) {
        var h = [];
        1 < e.length ? (e.each(function() {
          var a = c.clone(!0);
          d(this).append(a);
          h.push(a[0]);
        }), c = d(h)) : c.appendTo(e);
      }
      f.pagerAnchors = f.pagerAnchors || [];
      f.pagerAnchors.push(c);
      c.bind(f.pagerEvent, function(b) {
        b.preventDefault();
        f.nextSlide = a;
        b = f.$cont[0];
        var c = b.cycleTimeout;
        c && (clearTimeout(c), b.cycleTimeout = 0);
        b = f.onPagerEvent || f.pagerClick;
        d.isFunction(b) && b(f.nextSlide, g[f.nextSlide]);
        u(g, f, 1, f.currSlide < a);
      });
      /^click/.test(f.pagerEvent) || f.allowPagerClickBubble || c.bind("click.cycle", function() {
        return!1;
      });
      f.pauseOnPagerHover && c.hover(function() {
        f.$cont[0].cyclePause++;
      }, function() {
        f.$cont[0].cyclePause--;
      });
    }
  };
  d.fn.cycle.hopsFromLast = function(a, b) {
    var d = a.lastSlide, g = a.currSlide;
    return b ? g > d ? g - d : a.slideCount - d : g < d ? d - g : d + a.slideCount - g;
  };
  d.fn.cycle.commonReset = function(a, b, e, g, f, c) {
    d(e.elements).not(a).hide();
    e.cssBefore.opacity = 1;
    e.cssBefore.display = "block";
    e.slideResize && !1 !== g && 0 < b.cycleW && (e.cssBefore.width = b.cycleW);
    e.slideResize && !1 !== f && 0 < b.cycleH && (e.cssBefore.height = b.cycleH);
    e.cssAfter = e.cssAfter || {};
    e.cssAfter.display = "none";
    d(a).css("zIndex", e.slideCount + (!0 === c ? 1 : 0));
    d(b).css("zIndex", e.slideCount + (!0 === c ? 0 : 1));
  };
  d.fn.cycle.custom = function(a, b, e, g, f, c) {
    var h = d(a), l = d(b), m = e.speedIn;
    a = e.speedOut;
    var n = e.easeIn;
    b = e.easeOut;
    l.css(e.cssBefore);
    c && (m = "number" == typeof c ? a = c : a = 1, n = b = null);
    h.animate(e.animOut, a, b, function() {
      e.cssAfter && h.css(e.cssAfter);
      e.sync || l.animate(e.animIn, m, n, g);
    });
    e.sync && l.animate(e.animIn, m, n, g);
  };
  d.fn.cycle.transitions = {fade:function(a, b, e) {
    b.not(":eq(" + e.currSlide + ")").css("opacity", 0);
    e.before.push(function(a, b, c) {
      d.fn.cycle.commonReset(a, b, c);
      c.cssBefore.opacity = 0;
    });
    e.animIn = {opacity:1};
    e.animOut = {opacity:0};
    e.cssBefore = {top:0, left:0};
  }};
  d.fn.cycle.ver = function() {
    return "2.94";
  };
  d.fn.cycle.defaults = {fx:"fade", timeout:4E3, timeoutFn:null, continuous:0, speed:1E3, speedIn:null, speedOut:null, next:null, prev:null, onPrevNextEvent:null, prevNextEvent:"click.cycle", pager:null, onPagerEvent:null, pagerEvent:"click.cycle", allowPagerClickBubble:!1, pagerAnchorBuilder:null, before:null, after:null, end:null, easing:null, easeIn:null, easeOut:null, shuffle:null, animIn:null, animOut:null, cssBefore:null, cssAfter:null, fxFn:null, height:"auto", startingSlide:0, sync:1, random:0, 
  fit:0, containerResize:1, slideResize:1, pause:0, pauseOnPagerHover:0, autostop:0, autostopCount:0, delay:0, slideExpr:null, cleartype:!d.support.opacity, cleartypeNoBg:!1, nowrap:0, fastOnEvent:0, randomizeEffects:1, rev:0, manualTrump:!0, requeueOnImageNotLoaded:!0, requeueTimeout:250, activePagerClass:"activeSlide", updateActivePagerLink:null, backwards:!1};
})(jQuery);
(function(d) {
  d.fn.innerfade = function(m) {
    return this.each(function() {
      d.innerfade(this, m);
    });
  };
  d.innerfade = function(m, n) {
    var h = {animationtype:"fade", speed:"normal", type:"sequence", timeout:2E3, containerheight:"auto", runningclass:"innerfade", children:null};
    n && d.extend(h, n);
    var q = null === h.children ? d(m).children() : d(m).children(h.children);
    if (1 < q.length) {
      d(m).css("position", "relative").css("height", h.containerheight).addClass(h.runningclass);
      for (var r = 0;r < q.length;r++) {
        d(q[r]).css("z-index", String(q.length - r)).css("position", "absolute").hide();
      }
      if ("sequence" == h.type) {
        setTimeout(function() {
          d.innerfade.next(q, h, 1, 0);
        }, h.timeout), d(q[0]).show();
      } else {
        if ("random" == h.type) {
          var s = Math.floor(Math.random() * q.length);
          setTimeout(function() {
            do {
              t = Math.floor(Math.random() * q.length);
            } while (s == t);
            d.innerfade.next(q, h, t, s);
          }, h.timeout);
          d(q[s]).show();
        } else {
          if ("random_start" == h.type) {
            h.type = "sequence";
            var t = Math.floor(Math.random() * q.length);
            setTimeout(function() {
              d.innerfade.next(q, h, (t + 1) % q.length, t);
            }, h.timeout);
            d(q[t]).show();
          } else {
            alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");
          }
        }
      }
    }
  };
  d.innerfade.next = function(m, n, h, q) {
    "slide" == n.animationtype ? (d(m[q]).slideUp(n.speed), d(m[h]).slideDown(n.speed)) : "fade" == n.animationtype ? (d(m[q]).fadeOut(n.speed), d(m[h]).fadeIn(n.speed, function() {
      removeFilter(d(this)[0]);
    })) : alert("Innerfade-animationtype must either be 'slide' or 'fade'");
    if ("sequence" == n.type) {
      h + 1 < m.length ? (h += 1, q = h - 1) : (h = 0, q = m.length - 1);
    } else {
      if ("random" == n.type) {
        for (q = h;h == q;) {
          h = Math.floor(Math.random() * m.length);
        }
      } else {
        alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");
      }
    }
    setTimeout(function() {
      d.innerfade.next(m, n, h, q);
    }, n.timeout);
  };
})(jQuery);
function removeFilter(d) {
  d.style.removeAttribute && d.style.removeAttribute("filter");
}
;